#ifndef LOGINLOGAPI_H
#define LOGINLOGAPI_H

#include <QObject>
#include <QMainWindow>
#include <QtNetwork>
#include <QDebug>
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <Utils.h>
#include <config.h>

class LoginLogApi : public QObject
{
    Q_OBJECT
public:
    explicit LoginLogApi(QObject *parent = nullptr);

    QByteArray* list(int pageNum, int pageSize,QString ipaddr,QString userName,
                     QString status,QString start,QString end);
    QByteArray* clear();
    QByteArray* getById(int deptId);
    //删除
    QByteArray* deleteItems(QString ids);
    QByteArray* unlock(QString userName);
private:
    QString baseUrl ;
    QNetworkRequest request;
    QNetworkAccessManager *manager ;
    QByteArray *data = nullptr;
    Utils utils;
};

#endif // LOGINLOGAPI_H
